/**
* Class Name: ItemSearchControllerTest
* Author: Accenture
* Date: 13-Jun-2011
* Requirement/Project Name: iFulfill
* Requirement/Project Description: Test class for ItemSearchController
**/

@isTest
private class ItemSearchControllerTest
{
    public testMethod static void testSeachController()
    {
        PageReference pg = Page.iFulfillSearchItem;
        Test.setCurrentPage(pg); 
        Fullfilment_Item__c FI = new Fullfilment_Item__c(   Main_Listing_Phone_Number__c = '100',
                                                          Listed_Name__c ='XYZ',
                                                          Heading_Name__c ='Heading name',
                                                          Item_Id__c = 'Item id' ,
                                                          Product_Code__c ='p1',
                                                          UDAC__c ='Udac1',
                                                          Region__c = 'region1',
                                                          Transaction_Type__c ='New');
        Insert FI;
        ItemSearchCOntroller itemSearchCtrl = new ItemSearchCOntroller();
        itemSearchCtrl.listingPhoneNumber ='100';
        itemSearchCtrl.sortField='Current_Stage__c';
        itemSearchCtrl.doSearch();
        itemSearchCtrl.doSort();
      
       itemSearchCtrl.escalatedCheckBox = 'Escalated';
       itemSearchCtrl.listingPhoneNumber ='222';

        itemSearchCtrl .dummy();
        itemSearchCtrl.OwnerName = 'xyz';
        itemSearchCtrl .accountName ='United Health';
        itemSearchCtrl .customerID = 'Cust-100';
        itemSearchCtrl .featureCode = 'feature1';
        itemSearchCtrl .OwnerName = 'xxx';
        itemSearchCtrl .productIssue ='error';
        itemSearchCtrl .status = 'New'; 
        itemSearchCtrl .currentFunctionName='Desgin';
        itemSearchCtrl .currentTaskName ='Pre Desgin';
        itemSearchCtrl .productFamilyName='Banner';

         itemSearchCtrl .listedName ='XYZ'; 
          itemSearchCtrl.ypcHeadingCode='Heading name';
           itemSearchCtrl.itemId = '10';
          itemSearchCtrl.filterViews = IfullfillTextConstant.MY_QUEUE_ITEMS_TXT;
         itemSearchCtrl.myQueueName=IfullfillTextConstant.ALL_TXT;
         itemSearchCtrl.OwnerName ='gg';
         itemSearchCtrl.productCode = 'za';
         itemSearchCtrl.udac ='udac';
         itemSearchCtrl.selectedRegion='IN';
         itemSearchCtrl.selectedTransactionType= 'new';
         
        itemSearchCtrl .doSearch();
        itemSearchCtrl .currentTask();
        itemSearchCtrl .getCurrentFunction();
        itemSearchCtrl .getProductFamily();
        itemSearchCtrl .getWorkflowStatus();
        itemSearchCtrl .doClaim();

        itemSearchCtrl.getTransactionType();
        itemSearchCtrl.getRegion();
        itemSearchCtrl.cancelOwnerChange();
        itemSearchCtrl.saveOwner();
        itemSearchCtrl.changeOwner();
        itemSearchCtrl.enableMyQueue();
        itemSearchCtrl.getQueues();
        itemSearchCtrl.clear();
        itemSearchCtrl.getTotalNoOfRecord();
        itemSearchCtrl.getSelectedElements();
        itemSearchCtrl.next();
        itemSearchCtrl.getHasPrevious();
        itemSearchCtrl.getHasNext();
        itemSearchCtrl.getMyqueues();
        itemSearchCtrl.getFilterViewItem();
        itemSearchCtrl.prevoius ();
        itemSearchCtrl.getLimitQueryRows();
        itemSearchCtrl.getEscalated();
    }   
}